package VN.EDU.IMIC.DEVELOPER.NGUYENTHUYOANH_List03;

import java.util.Scanner;

import VN.EDU.IMIC.DEVELOPER.NGUYENTHUYOANH_List03.Controller;

public class Views {
	public static void main(String[] args) {

		Controller obj_Controller=new Controller();
		Scanner obj_Scanner=new Scanner(System.in);
		int []a= new int [5];
		
		
		//Nhap mang
		for(int i=0;i<a.length;i++)
		{
		
			System.out.println("Nhap phan tu thu "+ i+ " ");
			a[i]=obj_Scanner.nextInt();
		}
		
		//Xuat mang
		for(int i=0;i<a.length;i++)
		{
		
			System.out.println("Gia tri phan tu thu "+ i+ "la: "+ a[i]);

		}
		
		//Vi Tri Cac Phan Tu Lon Nhat
		
		int []Tem=obj_Controller.ViTriCacPhanTuLonNhat(a);
	
		//Xuat mang chua vi tri lon nhat
	 System.out.println("Vi tri chua phan tu lon nhat la: ");
				for(int i=0;i<Tem.length;i++)
				{
				
					System.out.println( Tem[i]);
					
			
				}
				
				
		
		
	}
	

	}


